name: pre-commit run_id: commands[0] env HOME: /home/jenkins env LANG: C.UTF-8 env PATH: /w/workspace/bgpcep-tox-verify-master/.tox/pre-commit/bin:/opt/pyenv/bin:/tmp/venv-WcGY/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin env PIP_DISABLE_PIP_VERSION_CHECK: 1 env PYTHONHASHSEED: 1845080731 env PYTHONIOENCODING: utf-8 env TOX_ENV_DIR: /w/workspace/bgpcep-tox-verify-master/.tox/pre-commit env TOX_ENV_NAME: pre-commit env TOX_WORK_DIR: /w/workspace/bgpcep-tox-verify-master/.tox env VIRTUAL_ENV: /w/workspace/bgpcep-tox-verify-master/.tox/pre-commit metadata pid: 2418 cwd: /w/workspace/bgpcep-tox-verify-master allow: /w/workspace/bgpcep-tox-verify-master/.tox/pre-commit/bin/* cmd: pre-commit run --all-files --show-diff-on-failure exit_code: 1 [WARNING] hook id `remove-tabs` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. [WARNING] repo `https://github.com/pre-commit/pre-commit-hooks` uses deprecated stage names (commit, push) which will be removed in a future version. Hint: often `pre-commit autoupdate --repo https://github.com/pre-commit/pre-commit-hooks` will fix this. if it does not -- consider reporting an issue to that repo. [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... trim trailing whitespace.................................................Passed Tabs remover.............................................................Failed - hook id: remove-tabs - exit code: 1 - files were modified by this hook Substituting tabs in: pcep/testtool/src/main/java/org/opendaylight/protocol/pcep/testtool/Main.java by 4 whitespaces Tabs have been successfully removed. Now aborting the commit. You can check the changes made. Then simply "git add --update ." and re-commit pre-commit hook(s) made changes. If you are seeing this message in CI, reproduce locally with: `pre-commit run --all-files`. To run `pre-commit` as part of git workflow, use `pre-commit install`. All changes made by hooks: diff --git a/pcep/testtool/src/main/java/org/opendaylight/protocol/pcep/testtool/Main.java b/pcep/testtool/src/main/java/org/opendaylight/protocol/pcep/testtool/Main.java index 55f68e20e4..809c9d552e 100644 --- a/pcep/testtool/src/main/java/org/opendaylight/protocol/pcep/testtool/Main.java +++ b/pcep/testtool/src/main/java/org/opendaylight/protocol/pcep/testtool/Main.java @@ -31,48 +31,48 @@ public final class Main { // FIXME: inline as a text block private static final String USAGE = """ DESCRIPTION: - Creates a server with given parameters. As long as it runs, it accepts connections \ + Creates a server with given parameters. As long as it runs, it accepts connections \ from PCCs. USAGE: - -a, --address - the ip address to which is this server bound. - Format: x.x.x.x:y where y is port number. + -a, --address + the ip address to which is this server bound. + Format: x.x.x.x:y where y is port number. - -d, --deadtimer - in seconds, value of the desired deadtimer - According to RFC5440, recommended value for deadtimer is 4 times the value - of KeepAlive timer. If it's not, a warning is printed. - If not set, it's value will be derived from KeepAlive timer value. + -d, --deadtimer + in seconds, value of the desired deadtimer + According to RFC5440, recommended value for deadtimer is 4 times the value + of KeepAlive timer. If it's not, a warning is printed. + If not set, it's value will be derived from KeepAlive timer value. - -ka, --keepalive - in seconds, value of the desired KeepAlive timer. - If not present, KeepAlive timer will be set to recommended value (30s). + -ka, --keepalive + in seconds, value of the desired KeepAlive timer. + If not present, KeepAlive timer will be set to recommended value (30s). - --stateful - passive stateful + --stateful + passive stateful - --active - active stateful (implies --stateful) + --active + active stateful (implies --stateful) - --instant - instantiated stateful, cleanup timeout \ + --instant + instantiated stateful, cleanup timeout \ (default value, if not included = 0) (implies --stateful) - -arm, --autoResponseMessages - with groovy script which implements MessageGeneratorService. - Messages are used as auto response for every message received. Purely for testing puposes!\s + -arm, --autoResponseMessages + with groovy script which implements MessageGeneratorService. + Messages are used as auto response for every message received. Purely for testing puposes!\s - -psm, --periodicallySendMessages - with groovy script which implements\ + -psm, --periodicallySendMessages + with groovy script which implements\ MessageGeneratorService followed by in seconds. - Messages which are sent periodically. Purely for testing puposes!\s + Messages which are sent periodically. Purely for testing puposes!\s - -snm, --sendNowMessage - with groovy script which implements MessageGeneratorService. - Messages are sent in defined states defined by programmer. Purely for testing puposes!\s + -snm, --sendNowMessage + with groovy script which implements MessageGeneratorService. + Messages are sent in defined states defined by programmer. Purely for testing puposes!\s - --help - display this help and exits + --help + display this help and exits With no parameters, this help is printed."""; private static final int KA_TO_DEADTIMER_RATIO = 4;